import random
# lottery = random.randint(0,99)
guess = eval(input('请输入彩票数字：'))

lotteryDigit1 = random.randint(0,9)
lotteryDigit2 = -1
while lotteryDigit2 == -1 or lotteryDigit2==lotteryDigit1:
    lotteryDigit2 = random.randint(0,9)

lottery = lotteryDigit2*10+lotteryDigit1

guessDigit1,guessDigit2 = guess//10,guess%2

print("随机的彩票数为：",lottery)

if guess== lottery:
    print("你获得了$10,000")
elif (guessDigit1==lotteryDigit2) and guessDigit2 ==lotteryDigit1:
    print("你获得了$3,000")
elif guessDigit1 ==lotteryDigit1 or guessDigit1 == lotteryDigit2 or guessDigit2 == lotteryDigit1 or guessDigit2 == lotteryDigit2:
    print("你获得了$1,000")
else:
    print("对不起，你没有得奖哦。")


